export default () => {
    return new Promise((resolve, reject) => {
        if(!wx.getStorageSync('userInfo') || !wx.getStorageSync('userInfo').phone) {
            uni.navigateTo({
                url: '/pages/login/index'
            })
            reject()
            return
        }
        resolve()
    })
}